#!/bin/bash
[ $# -eq 0 ] && { echo "Usage: $0 LANG"; exit 1; }

sed 's/\(^[a-zàáìíòóùú]*\)[[:space:]]*.*/\1/' stoplist-$LANG > stoplist-$LANG

sed 's_^[a-z]*$_/\\b&\\b/_' stoplist-$LANG > stoplist-$LANG

sed-4.2 's_/\\b\([a-z]\)\([a-z]*\)_/\\b[\1\u\1]\2_' stoplist-$LANG > Regexs-en-$LANG/stoplist-nsp.regex